package il.technion.cs236369.interfaces;

import java.util.Properties;

import il.technion.cs236369.exceptions.InvalidPropertiesFile;

public interface ICacheManagerFactory {
	/**
	 * Creates a cache manager
	 * 
	 * @param getter An http getter to allow sending get requests for validity
	 *            checks
	 * @param propertiesFile The properties file with data to handle DB
	 *            connections
	 * @return A cache manager instance
	 * @throws InvalidPropertiesFile If the properties file is not valid for
	 *             some reason (e.g. missign properties)
	 */
	public ICacheManager create(IHttpCommunicator getter, Properties propertiesFile) throws InvalidPropertiesFile;
}
